import React from 'react';
export default class Courseware extends React.Component{
    constructor(props){
        super();
        if(props.fill===undefined){
            this.state={
                fill:"#5393eb"
            }
        }
        else{
            this.state={
                fill:props.fill
            }
        }
        
    }
    UNSAFE_componentWillReceiveProps(prop){
        if(prop.fill===undefined||prop.fill===""){
            this.setState({
                fill:"#5393eb"
            })
        }
        else{
            this.setState({
                fill:prop.fill
            })
        }
    }
    render(){
        return(
            <svg xmlns="http://www.w3.org/2000/svg" width="17.847" height="19.882" viewBox="0 0 17.847 19.882">
            <defs>
            </defs>
            <path id="课件_3_" data-name="课件 (3)" class="cls-1" fill={this.state.fill} d="M93.648,30.768h-.724c-.882,0-1.249-.777-1.249-1.5v-.8a1.363,1.363,0,0,0-1.4-1.333H78.931A2.087,2.087,0,0,0,76.8,29.172V44.981a2.087,2.087,0,0,0,2.131,2.036H93.249a1.37,1.37,0,0,0,1.4-1.333V32.427C94.645,31.513,94.719,30.768,93.648,30.768Zm-14.612-.462a1.291,1.291,0,0,1,1.323-1.26h8.093a1.261,1.261,0,1,1,0,2.519H80.359A1.285,1.285,0,0,1,79.036,30.306ZM87.1,43.48H79.907a.84.84,0,1,1,0-1.68H87.1a.84.84,0,1,1,0,1.68Zm3.548-3.653H79.96a.844.844,0,1,1,0-1.68H90.635a.883.883,0,0,1,.924.84A.874.874,0,0,1,90.646,39.827Zm0-3.664H79.96a.844.844,0,1,1,0-1.68H90.635a.883.883,0,0,1,.924.84A.874.874,0,0,1,90.646,36.164Z" transform="translate(-76.8 -27.136)"/>
            </svg>

            );
    }
}